import request from '@/utils/request'

export function getCollegeList(data) {
  return request({
    url: '/college/selectAll',
    method: 'get',
    params: data,
  })
}

export function getCollegeById(data) {
  return request({
    url: `/college/select/${data.id}`,
    method: 'get',
    params: data,
  })
}

export function updateCollege(data) {
  return request({
    url: '/college/update',
    method: 'put',
    data,
  })
}

export function insertCollege(data) {
  return request({
    url: '/college/insert',
    method: 'post',
    data,
  })
}
/**
 * 查询所有学院
 * @param
 * @returns
 */
export function getCollegeAll() {
  return request({
    url: '/college/getList',
    method: 'get'
  })
}
